package eteam.aps.systeminterface.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 模块实体
 */
@Data
@TableName(value = "sp_module")
public class ModuleEntity implements Serializable {
    @TableId(value = "FModuleId", type = IdType.INPUT)
    private String fmoduleid;
    @TableField(value = "FModuleName")
    private String fmodulename;
    @TableField(value = "FModuleKey")
    private String fmodulekey;
    @TableField(value = "FParentId")
    private String fparentid;
    @TableField(value = "LinkUrl")
    private String linkurl;
    @TableField(value = "Auth")
    private Boolean auth;
    @TableField(value = "Icon")
    private String icon;
    @TableField(value = "Sort")
    private Integer sort;
    @TableField(value = "Platform")
    private Integer platform;
    /**
     * 状态【-1删除 0停用 1启用】
     */
    @TableField(value = "State")
    private Integer state;

    @TableField(exist = false)
    private List<ModuleEntity> children;
    @TableField(exist = false)
    private List<ModuleoperEntity> uclist;
}
